const Router = require("koa-router")
const app = new Router({ prefix: "/user" })
const { isslogin } = require('../middleware/index')
const { updateimg, updataname } = require('../controller/user')
app.post('/updataimg', isslogin, updateimg)
app.post('/updataname', isslogin, updataname)
module.exports = app